package sf.r2dbc.sql;

/**
 * 基础sql封装类
 * @author sxf
 */
public class R2dbcCrud {
    private static R2dbcCrud c = null;

    private final R2dbcCrudModelInf crudModel = R2dbcCrudModelImpl.getInstance();

    private final R2dbcCrudSqlInf crudSql = R2dbcCrudSqlImpl.getInstance();

    private final R2dbcCrudExampleInf crudExampleInf = R2dbcCrudExampleImpl.getInstance();


    private R2dbcCrud() {

    }

    public static R2dbcCrud getInstance() {
        if (c == null) {
            c = new R2dbcCrud();
        }
        return c;
    }

    public R2dbcCrudModelInf getCrudModel() {
        return crudModel;
    }

    /**
     * 直接对sql操作
     * @return
     */
    public R2dbcCrudSqlInf getCrudSql() {
        return crudSql;
    }

    public R2dbcCrudExampleInf getCrudExampleInf() {
        return crudExampleInf;
    }
}
